import request from '/@/utils/request';
// 列表
export const itemList = (data: object) => {
    return request({
        method: 'post',
        url: "/organization/project/index", // url
        data: data
    });
}

//新增/编辑
export const itemAdd = (data: object) => {
    return request({
        method: 'post',
        url: "/organization/project/add", // url
        data: data
    });
}
// 编辑回显
export const itemEdit = (data: object) => {
    return request({
        method: 'post',
        url: "/organization/project/edit", // url
        data: data
    });
}

// 下架
export const itemDel = (data: number) => {
    return request({
        method: 'post',
        url: "/organization/project/del", // url
        data: data
    });
}

//恢复
export const itemBack = (data: object) => {
    return request({
        method: 'post',
        url: "/organization/project/back", // url
        data: data
    });
}
//其他项目
export const itemCompany = (data: object) => {
    return request({
        method: 'post',
        url: "/organization/project/company", // url
        data: data
    });
}
// 公司
export const getOrgTree = (data: object) => {
    // 请求参数处理
    return request({
        url: "/organization/index/index",
        data: data,
        method: "post",
    });
};
